package lu.med.praxiswahl.wahlumed.client.rechnungen.op.utilities;

import java.util.*;
import java.text.*;

public class StringToCalendar
{
    DateFormat formatter;
    Date date;
    
    public Calendar convertToCalendar(String str_date)
    {
	Calendar cal = Calendar.getInstance();
	formatter = new SimpleDateFormat("dd.MM.yyyy");
	try
	{
	    date = (Date) formatter.parse(str_date);
	    cal.setTime(date);
	    
	   
	}
	catch (ParseException e)
	{
	    // TODO Auto-generated catch block
	    e.printStackTrace();
	    System.out.println("Exception :" + e);
	}
	 return cal;
    }

}
